<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">


<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" th:src="@{/static/js/vue.js}"></script>
<head>
    <meta charset="UTF-8">
    <title>添加商品</title>
</head>


<body>
<!--头部 用于存放导航栏-->
<header id="my_header">
    <!--导航条-->
    <nav class="navbar navbar-default navbar-static-top nav_show" >
        <div class="container-fluid">
            <!-- 右侧自适应3杠小图标 -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand " th:href="@{/to/main}">首页</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse">
                <ul class="nav navbar-nav">
                    <li><a th:href="@{/to/main}">商品管理 </a></li>
                    <li><a href="#">订单管理</a></li>
                    <li><a href="#">系统管理</a></li>
                    <li><a th:href="@{/to/add}">添加商品</a></li>
                </ul>
                <!-- 大中屏幕下右侧显示内容 -->
                <ul class="nav navbar-nav navbar-right hidden-sm hidden-xs">
                    <li><a href="http://localhost:8082">茶友购物系统</a></li>
                    <li><a href="@{/to/adminmanage}">系统管理员</a></li>
                </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
</header>

<div style="width: 700px ;height: 400px" class="container">

<form  th:action="@{/to/main/add/ }" method="post">
    <tr>

        商品名字：<td><input type="text" class="form-control"  id="gname" th:name="gname" placeholder="商品名字"> </td><br>
        商品价格：<td><input type="text" class="form-control" id="price"  th:name="price" placeholder="商品价格"> </td><br>
        <!--                <input type="hidden"th:value="${pricture}" >-->
        商品库存：<td><input type="text" class="form-control"  id="num" th:name="num" placeholder="商品库存"> </td><br>
        <td><button type="submit"  class="btn btn-success" >添加</button></td>
    </tr>
</form>
    <span style="color: deepskyblue ;width: 800px ;height: auto"  class="container ">[[${success}]]</span>
</div>



</body>
</html>
